{include file="header.tpl" jsload="ajax" jsload1="tinymce"}
{include file="tabsmenue-admin.tpl" companytab="active"}

<div id="content-left">
	
	<div id="content-left-in">
		
		<div class="projects">

			<div class="infowin_left" style="display:none;" id="systemmsg">
				{if $mode == "assigned"}
					<span class="info_in_yellow">
						<img src="templates/standard/images/symbols/system-settings.png" alt=""/>
						{#settingsedited#}
					</span>
				{elseif $mode == "deleted"}
					<span class="info_in_green">
						<img src="templates/standard/images/symbols/company.png" alt="{#company#}"/>
						{#companydeleted#}
					</span>
				{elseif $mode == "error"}
					<span class="info_in_red">
						<img src="templates/standard/images/symbols/company.png" alt="{#company#}"/>
						{#error#}
					</span>
				{elseif $mode == "deassigned"}
					<span class="info_in_red">
						<img src="templates/standard/images/symbols/user-icon-male.png" alt=""/>
						{#userwasdeassigned#}
					</span>
				{elseif $mode == "added"}
					<span class="info_in_green">
						<img src="templates/planeacion_desarrollo/images/symbols/companies_30.png" alt=""/>
						{#companyadded#}
					</span>
				{/if}
			</div>

			{literal}
			<script type = "text/javascript">
				systemMsg('systemmsg');
			</script>
			{/literal}

			<h1>{#administration#}<span>/ {#companyadministration#}</span></h1>

			<div class="headline">
				
				{if (int)$userpermissions.companies.add}
				<div class="wintools" style="top:6px;margin-right:15px;">
					<a class="add" href="javascript:blindtoggle('form_addcompany');" id="add_company" onclick="toggleClass(this, 'add-active', 'add');toggleClass('add_butn_companies','butn_link_active','butn_link');toggleClass('sm_companies','smooth','nosmooth');">
						<span>{#addcompany#}</span>
					</a>
				</div>
				{/if}
				
				<h2>
					<img src="./templates/planeacion_desarrollo/images/symbols/companies_30.png" />
					{#companies#}
				</h2>
				
			</div>
			
			<div id="form_addcompany" class="addmenue" style="display:none;">
				{include file="addcompany.tpl" companies="1"}
			</div>
			
			<div class="nosmooth" id="sm_companies">
				
				{if $companies}
				<div id="companies-hierarchy-ul">
					{$companies_ul}
				</div>
				{else}
				<div class="no-data">
					{#companies_no_data#}
				</div>
				{/if}
				
			</div>
			
			<div class="block" id="acc-projects">
				<div class="tablemenue">
					<div class="tablemenue-in">
						{if $userpermissions.projects.add}
							<a class="butn_link" href="javascript:blindtoggle('form_addcompany');" id="add_butn_companies" onclick="toggleClass('add_company','add-active','add');toggleClass(this,'butn_link_active','butn_link');toggleClass('sm_companies','smooth','nosmooth');">
								{#addcompany#}
							</a>
						{/if}
					</div>
				</div>
			</div>
			
			<div class="content-spacer">&nbsp;</div>
			
		</div> {*Projects END*}
		
	</div> {*content-left-in END*}
	
</div> {*content-left END*}

{include file="sidebar-a.tpl"}
{include file="footer.tpl"}